package ai.peanut.one.api.mq.mqTestTopic;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = TopicTestConfig.refundQueueName)
public class TopicListen2 {

    @RabbitHandler
    public void process(String hello) {
        System.out.println("222222222222222: " + hello);
    }


}
